﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

using easyList.Resources;

namespace easyList.Tools
{
    class LanguageImageCreator
    {
        public static Image createImage(List<string> isoLanguages)
        {
            int distance = 2;
            List<Image> imagesToCompose = new List<Image>();
            foreach(string language in isoLanguages){

               // imagesToCompose.Add(Image.FromFile(LanguageResourceMappings.mappings.));

            }

            Image img_rus = Image.FromFile("Resources\\Flags\\russian.png");
            Image img_ger = Image.FromFile("Resources\\Flags\\german.png");
            Image img_eng = Image.FromFile("Resources\\Flags\\english.png");
            Image img_Comp = new Bitmap(img_rus.Width + img_ger.Width + img_eng.Width, img_rus.Height);
            Graphics graphic = Graphics.FromImage(img_Comp);
            graphic.DrawImage(img_rus, Point.Empty);
            graphic.DrawImage(img_ger, new Point(img_rus.Width + 2, 0));
            graphic.DrawImage(img_eng, new Point(img_rus.Width * 2 + 4, 0));

            return img_Comp;
        }
    }
}
